import { ApiProperty, OmitType, PartialType } from "@nestjs/swagger";
import { CreateTemplateDto } from "./create-template.dto";

export class QueryDto extends PartialType(OmitType(CreateTemplateDto, ['description','content'])) {
    @ApiProperty(
        {
            description: 'The page number',
            example: 1,
            required: false
        }
    )
    pageNum?: number;

    @ApiProperty(
        {
            description: 'The page size',
            example: 10,
            required: false
        }
    )
    pageSize?: number;

    @ApiProperty(
        {
            description: 'The page keywords',
            example: '关键词',
            required: false
        }
    )
    keywords?: string;
}